package com.itheima.sh.a_break_01.b_random02;
         //   需求：生成1-9之间的随机数


//1.导包
import java.util.Random;


public class RandomDemo01 {
    public static void main(String[] args) {
        Random r=new Random();
        for (int i = 0; i < 10; i++) {
            int x=r.nextInt(10);
            System.out.println(x);
        }
    }
}
